package com.yswy.common.enums;



import com.yswy.common.enums.base.EnumHelper;
import com.yswy.common.enums.base.TypeEnum;
import com.yswy.common.enums.base.TypeEnumDto;

import java.util.List;
import java.util.Map;

public enum DateUnitEnums implements TypeEnum {
    SECOND(0, "SECOND"),//秒
    HOUR(1, "HOUR"),//小时
    DAY(2, "DAY"),//天
    MONTH(3, "MONTH"),//月
    YEAR(4, "YEAR");//年

	DateUnitEnums(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private final int code;

    private final String message;

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }

    public static List<TypeEnumDto> kv = EnumHelper.getTypeEnum(values());
    
    public static final int HOUR_CODE = 1;
    public static final int DAY_CODE = 2;
    public static final int MONTH_CODE = 3;
    public static final int YEAR_CODE = 4;
}
